package com.snowfeel.sfmall.api.sys.feign;

import com.snowfeel.sfmall.api.sys.feign.dto.LoginUserDto;
import com.snowfeel.sfmall.core.response.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author guomenghuai
 * @date 2024/8/25
 * @Description
 */
@FeignClient(name = "sfmall-cloud-sys")
public interface SysUserFeignClient {

    /**
     * 根据用户名获取用户信息
     * @param username
     * @return
     */
    @PostMapping(value = "/user/info")
    JsonResult<LoginUserDto> getUserInfo(@RequestParam(value = "username") String username);
}
